package com.ims.core.doc.mapper;

import java.util.List;
import com.ims.core.doc.domain.TInDeductionApply;
import com.ims.core.doc.domain.TInDeductionApplyEntry;

/**
 * 抵扣发票勾选抵扣申请Mapper接口
 *
 * @author IMS
 * @date 2024-12-03
 */
public interface TInDeductionApplyMapper
{
    /**
     * 查询抵扣发票勾选抵扣申请
     *
     * @param id 抵扣发票勾选抵扣申请主键
     * @return 抵扣发票勾选抵扣申请
     */
    public TInDeductionApply selectTInDeductionApplyById(Long id);

    /**
     * 查询抵扣发票勾选抵扣申请
     *
     * @param deductionId 抵扣发票勾选抵扣申请主键
     * @return 抵扣发票勾选抵扣申请
     */
    public TInDeductionApply selectTInDeductionApplyByDeductionId(String deductionId);

    /**
     * 查询抵扣发票勾选抵扣申请列表
     *
     * @param tInDeductionApply 抵扣发票勾选抵扣申请
     * @return 抵扣发票勾选抵扣申请集合
     */
    public List<TInDeductionApply> selectTInDeductionApplyList(TInDeductionApply tInDeductionApply);

    /**
     * 新增抵扣发票勾选抵扣申请
     *
     * @param tInDeductionApply 抵扣发票勾选抵扣申请
     * @return 结果
     */
    public int insertTInDeductionApply(TInDeductionApply tInDeductionApply);

    /**
     * 修改抵扣发票勾选抵扣申请
     *
     * @param tInDeductionApply 抵扣发票勾选抵扣申请
     * @return 结果
     */
    public int updateTInDeductionApply(TInDeductionApply tInDeductionApply);

    /**
     * 修改抵扣发票勾选抵扣申请明细
     *
     * @param tInDeductionApplyEntry 抵扣发票勾选抵扣申请明细
     * @return 结果
     */
    public int updateTInDeductionApplyEntry(TInDeductionApplyEntry tInDeductionApplyEntry);

    /**
     * 删除抵扣发票勾选抵扣申请
     *
     * @param id 抵扣发票勾选抵扣申请主键
     * @return 结果
     */
    public int deleteTInDeductionApplyById(Long id);

    /**
     * 批量删除抵扣发票勾选抵扣申请
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTInDeductionApplyByIds(Long[] ids);

    /**
     * 批量删除抵扣发票勾选抵扣申请明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTInDeductionApplyEntryByDeductionIds(Long[] ids);

    /**
     * 批量新增抵扣发票勾选抵扣申请明细
     *
     * @param tInDeductionApplyEntryList 抵扣发票勾选抵扣申请明细列表
     * @return 结果
     */
    public int batchTInDeductionApplyEntry(List<TInDeductionApplyEntry> tInDeductionApplyEntryList);


    /**
     * 通过抵扣发票勾选抵扣申请主键删除抵扣发票勾选抵扣申请明细信息
     *
     * @param deductionId 抵扣发票勾选抵扣申请ID
     * @return 结果
     */
    public int deleteTInDeductionApplyEntryByDeductionId(String deductionId);
}
